CREATE TABLE [dbo].[tb_AreasTematicas]
(
[IdAreaTematica] [int] NOT NULL IDENTITY(1, 1),
[MacroAreaTematica] [int] NOT NULL,
[Descripcion] [varchar] (200) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_AreasTematicas] ADD CONSTRAINT [PK_tb_AreasTematicas] PRIMARY KEY CLUSTERED  ([IdAreaTematica]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[tb_AreasTematicas] WITH NOCHECK ADD CONSTRAINT [FK_tb_AreasTematicas_Tb_MacroAreasTematicas] FOREIGN KEY ([MacroAreaTematica]) REFERENCES [dbo].[Tb_MacroAreasTematicas] ([IdMacroAreaTematica])
GO
